G
@Lino-Amorim I think these are useful commands:
ls -l /dev/sd*
mount without parameters or mount | grep /dev/sda1
df -hT or df -hT | grep /dev/sda1
ls -lA /mnt, ls -lA /mnt/sda1, ...
Some "technical" info:
fdisk -l
lsusb -v
If you want to use the lsusb command: enable the second (2nd) line in the '/etc/opkg//distfeeds.conf' file and
opkg update
opkg install usbutils
For example:
Omega2+ FW v0.3.2 b232 with 8GB MicroSD card and 8GB FAT32 formatted USB pen drive with Expansion Dock
This is a "fake" Omega2 Pro - using FW omega2pro-v0.3.2-b232.bin
root@Omega-99A5:/# ls -l /dev/sd*
brw------- 1 root root 8, 0 Jan 1 1970 /dev/sda
brw------- 1 root root 8, 1 Jan 1 1970 /dev/sda1
root@Omega-99A5:/# mount | grep /dev/sda1
/dev/sda1 on /mnt/sda1 type vfat (rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
root@Omega-99A5:/# df -hT | grep /dev/sda1
/dev/sda1 vfat 3.7G 388.9M 3.3G 10% /mnt/sda1
root@Omega-99A5:/# ls -lA /mnt
drwxr-xr-x 5 root root 0 Jan 1 1970 mtdblock6
drwxrwxrwx 4 root root 4096 Nov 17 09:06 sda1
root@Omega-99A5:/# ls -lA /mnt/sda1
drwxrwxrwx 2 root root 4096 Oct 20 16:30 System Volume Information
drwxrwxrwx 3 root root 4096 Nov 17 09:06 downloads
-rwxrwxrwx 1 root root 402653184 Oct 20 15:19 swap.page
root@Omega-99A5:/# ls -lA /mnt/sda1/downloads
drwxrwxrwx 3 root root 4096 Nov 17 17:50 incomplete
###
root@Omega-99A5:/# fdisk -l
Disk /dev/mtdblock0: 192 KiB, 196608 bytes, 384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mtdblock1: 64 KiB, 65536 bytes, 128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mtdblock2: 64 KiB, 65536 bytes, 128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mtdblock3: 15.7 MiB, 16449536 bytes, 32128 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mtdblock4: 1.5 MiB, 1572352 bytes, 3071 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mtdblock5: 14.2 MiB, 14876672 bytes, 29056 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mtdblock6: 6.6 MiB, 6881280 bytes, 13440 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mmcblk0: 7.3 GiB, 7861174272 bytes, 15353856 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x15d70756
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 8192 15353855 15345664 7.3G b W95 FAT32
Disk /dev/sda: 3.8 GiB, 4007657472 bytes, 7827456 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x04030201
Device Boot Start End Sectors Size Id Type
/dev/sda1 1080 7827455 7826376 3.7G c W95 FAT32 (LBA)
###
root@Omega-99A5:/# lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0951:1625 Kingston Technology DataTraveler 101 II
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@Omega-99A5:/# lsusb -v
...
Bus 001 Device 002: ID 0951:1625 Kingston Technology DataTraveler 101 II
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0951 Kingston Technology
idProduct 0x1625 DataTraveler 101 II
bcdDevice 13.c6
iManufacturer 1 Kingston
iProduct 2 DT 101 II
iSerial 3 001CC0EC350DAA3047D83E05
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 200mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)
...